<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<%--
  Created by IntelliJ IDEA.
  User: gz
  Date: 2025/02/17
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  request.setAttribute("k1",78);
  pageContext.setAttribute("k1",50);
%>
<%--
    如果是requestscope.k1那么就是request的k1
    如果没有写前面的是谁的k1，那么默认从小到大，即pageContext->request->session
--%>
k1:${k1}
<c:choose>
  <c:when test="${requestScope.k1>=80}">
    <h1>${requestScope.k1}成绩优秀</h1>
  </c:when>
  <c:when test="${requestScope.k1>=60}">
    <h1>${requestScope.k1}成绩一般</h1>
  </c:when>
  <c:otherwise>
    <h1>${requestScope.k1}不及格</h1>
  </c:otherwise>
</c:choose>
</body>
</html>
